package com.github.niefy.modules.openapi.server.dto.in;

import com.github.niefy.common.utils.Json;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 颁发AccessToken接口
 * */
@Data
public class AppAccessTokenIn_001 {

    //强制刷新标志
    @NotNull
    private Boolean forceRefresh;
    //appid
    @NotBlank
    private String appid;
    //时间戳
    @NotNull
    private Long timestamp;
    //签名，md5(appid+timestamp+Secret)
    @NotBlank
    private String signature;

    @Override
    public String toString() {
        return Json.toJsonString(this);
    }
}
